package com.woniuxy.lab.woniu_lab.controller.form;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ApiModel("修改用户个人信息")
public class ModifyUserForm {

    /**
     * 手机号
     */
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;

    /**
     * 昵称(长度在2至10字)
     */
    @Pattern(regexp = "^[\\u4E00-\\u9FA5]{2,10}$", message = "昵称格式不正确")
    private String nickname;


}
